package course.web;
import course.domain.Course;
import course.domain.Personal;



import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttribute;



import lombok.extern.slf4j.Slf4j;


@Slf4j
@Controller
@RequestMapping("/result")
public class ResultController {
	@GetMapping
	public String showResult(@SessionAttribute("personal") Personal person, @SessionAttribute("selection") Course course,Model model) {
		/*System.out.println(person);
		System.out.println(course);*/
		model.addAttribute("personal", person);
		model.addAttribute("selection", course);
		return "result"; 
	}
}
